package charlie.demo.bus1.service;

import charlie.demo.bus1.entity.DemoEntity;

import javax.inject.Inject;

public class Bus1Service {

    @Inject
    MyService dbService;

    public void crud(){
        for(int i = 20; i < 25; i ++){
            DemoEntity entity = new DemoEntity();
            entity.setDemoName("我是" + i);
            entity.setDemoId(i);
            if(i == 23){
                entity.setDemoName("我是我是我是我是我是我是我是我是我是我是我是我是");
            }else{
                entity.setDemoName("我是" + i);
            }
            dbService.insert(entity);
        }
    }
}
